package cn.xxc.basic.service;

import cn.xxc.basic.query.BaseQuery;
import cn.xxc.basic.util.PageList;


import java.util.List;

public interface BaseService<T> {
    List<T> loadAll();

    T loadByid(Long id);

    void save(T t);

    void update(T t);

    void del(Long id);

    Integer queryCount(BaseQuery query);


    List<T> queryData(BaseQuery query);

    PageList<T> queryPage(BaseQuery query);

    void patchDel(Long[] ids);
}
